package cn.com.recode.e继承;

public class RegularPrice extends Price{

    @Override
    int getPriceCode() {
        return Movie.REGULAR;
    }

    @Override
    public double getCharge(int daysRented){
        double thisAmout = 0;
        thisAmout += 2;
        if (daysRented > 2) {
            thisAmout += (daysRented - 2) * 1.5;
        }
        return thisAmout;
    }
}
